/**

 * Created by lin on 2017/9/16.

 */



function transformStatus(intStatus) {

  var $status = {

    0: '<span class="label label-default">待审核</span>',

    1: '<span class="label label-primary">待定</span>',

    2: '<span class="label label-success">通过</span>',

    3: '<span class="label label-danger">拒绝</span>'

  };

  return $status[intStatus];

}



function transformStage(intStage) {

  var $stage = {

    1: '<span class="label label-info">初审阶段</span>',

    2: '<span class="label label-primary">复审阶段</span>',

    3: '<span class="label label-success">三审阶段</span>'

  };

  return $stage[intStage];

}



function transformSex(intItem) {

  var $arr = {

    1: '男',

    2: '女'

  };

  return $arr[intItem];

}



function transformDegree(intItem) {

  var $arr = {

    1: '博士生',

    2: '研究生',

    3: '本科生',

    4: '专科生'

  };

  return $arr[intItem];

}



function transformGrade(intItem) {

  var $arr = {

    1: '一年级',

    2: '二年级',

    3: '三年级',

    4: '四年级',

    5: '五年级'

  };

  return $arr[intItem];

}



function transformEducation(intItem) {

  var $arr = {

    1: '一年制',

    2: '二年制',

    3: '三年制',

    4: '四年制',

    5: '五年制'

  };

  return $arr[intItem];

}



function transformApply(intItem) {

  var $arr = {

    1: '活动策划',

    2: '内容运营',

    3: '设计师',

    4: '摄影师',

    5: '智库开发组',

    6: '智库视频组',

    7: '高级活动策划',

    8: '高级内容运营',

    9: '高级设计师',

    10: '高级摄影师',

    11: '智库策划组',

    12: '智库运营组',

    13: '智库设计组',

    14: '智库摄影组'

  };

  return $arr[intItem];

}



function transformProvince(intItem) {

  var $arr = {

    'guizhou': "贵州市",

    'sichuan': "四川省",

    'chongqing': "重庆市",

    'yunnan': "云南省",

    'shaanxi': "陕西省",

    'henan': "河南省",

    'gansu': "甘肃省",

    'shanxi': "山西省",

    'fujian': "福建省",

    'guangdong': "广东省",

    'guangxi': "广西省",

    'tianjin': "天津市",

    'beijing': "北京市",

    'hebei': "河北省",

    'shandong': "山东省",

    'jaingxi': "江西省",

    'hubei': "湖北省",

    'hunan': "湖南省",

    'zhejiang': "浙江省",

    'anhui': "安徽省",

    'shanghai': "上海",

    'jiangsu': "江苏省",

    'macao': "澳门",

    'hongkong': "香港",

    'hainan': "海南省",

    'taiwan': "台湾",

    'xinjiang': "新疆",

    'neimenggu': "内蒙古",

    'ningxia': "宁夏",

    'qinghai': "青海",

    'xizang': "西藏",

    'heilongjiang': "黑龙江省",

    'liaoning': "辽宁省",

    'jilin': "吉林省"

  };

  return $arr[intItem];

}





function transformLabel(label, apply) {

  if (_transformApplytoNum(apply) === 1) { // 策划



  } else if (_transformApplytoNum(apply) === 2) { // 运营



  } else if (_transformApplytoNum(apply) === 3) { // 设计

    if (label === 'softwareUse') { return '是否能熟练使用PS、AI等相关软件' }

  } else if (_transformApplytoNum(apply) === 4) { // 摄影

    if (label === 'softwareUse') { return '是否能使用PS等图形处理工具' }

  } else if (_transformApplytoNum(apply) === 5) { // 开发



  } else if (_transformApplytoNum(apply) === 6) { // 视频

    if (label === 'camera') { return '是否拥有单反、无人机等拍摄设备' }

    if (label === 'softwareUse') { return '是否接触过后期剪辑软件' }

  }



  // common

  let $arr = {

    actExp: "是否有活动策划经历",

    actName: "活动名称",

    actKind: "活动类型",

    actPosition: "所任职务",

    actDone: "参与事项",

    softwareUse: "是否能熟练使用PPT等相关软件",

    softwareName: "软件名称",

    softwareSkill: "熟练程度",

    joinReason: "加入的理由",

    otherInfo: "其他补充信息",

    editUse: "是否熟练秀米、简书等文字编辑软件",

    editPlatform: "编辑平台",

    workLink: "作品链接",

    accountOwn: "是否拥有自己的自媒体号",

    platformName: "平台名称",

    accountName: "帐号名称",

    operateExp: "是否有过运营经历",

    operateTime: "运营时间",

    operateLearn: "运营心得",

    createScore: "给自己的原创能力打分",

    typesetScore: "给自己的排版能力打分",

    scoreUpSkill: "加分技能",

    hotEvent: "请列出一周内最具有热议性的一件事并附上自己的看法",

    goodWork: "是否有优秀的摄影作品",

    selfLearn: "是否有很强的自学能力",

    camera: "是否拥有单反等拍摄设备",

    cameraBrand: "设备品牌",

    cameraVersion: "设备型号",

    lens: "镜头参数",

    fileLink: "作品链接",

    frame: "框架名称",

    skill: "技术名称",

    workName: "作品名称",

    work: "是否有影视类、剧本类作品",

    workKind: "作品类型",

    groupName: "组织名称",

    position: '担任职务'

  };

  return $arr[label];

}



function transformNum12(key, num) {

  if (key === 'actExp' ||

    key === 'softwareUse' ||

    key === 'editUse' ||

    key === 'accountOwn' ||

    key === 'operateExp' ||

    key === 'goodWork' ||

    key === 'selfLearn' ||

    key === 'camera' ||

    key === 'work') {

    if (num === "1") {

      return "是"

    }

    if (num === "2") {

      return "否"

    }

  } else {

    return num

  }

}



function transformNum123(key, num) {

  if (key === 'softwareSkill') {

    if (num === "1") {

      return "了解"

    }

    if (num === "2") {

      return "掌握"

    }

    if (num === "3") {

      return "精通"

    }

  } else {

    return num

  }

}



function _transformApplytoNum(apply) {

  if (apply === '活动策划' ||

    apply === '高级活动策划' ||

    apply === '智库策划组') {

    return 1

  } else if (apply === '内容运营' ||

    apply === '高级内容运营' ||

    apply === '智库运营组') {

    return 2

  } else if (apply === '设计师' ||

    apply === '高级设计师' ||

    apply === '智库设计组') {

    return 3

  } else if (apply === '摄影师' ||

    apply === '高级摄影师' ||

    apply === '智库摄影组') {

    return 4

  } else if (apply === '智库开发组') {

    return 5

  } else if (apply === '智库视频组') {

    return 6

  }

}